haskell string split

223

haskell string split -

-- There is a package for this called split.

cabal install split

-- Use it like this:

ghci> import Data.List.Split
ghci> splitOn "," "my,comma,separated,list"
["my","comma","separated","list"]

Comments

Submit
0 Comments